#ifndef MYROBOT_H
#define MYROBOT_H
#include <QPainter>
#include <QGraphicsItem>
#include <QDebug>


class myRobot : public QGraphicsItem
{
public:
    myRobot();

    QRectF boundingRect() const;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    bool pressed;

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);

};
#endif // MYROBOT_H
